package padrao3;

import java.util.LinkedList;

import com.thoughtworks.xstream.XStream;

public class Main {
	public static void main(String[] args) {
		Masher m = new Masher();
		Retrieve r = new Retrieve();
		r.setS("s");
		
		LinkedList<MashupCommand> ll = new LinkedList<MashupCommand>();
		ll.add(r);
		
		m.setList(ll);
		
		XStream xs = new XStream();
		xs.autodetectAnnotations(true);
		
		m = (Masher) xs.fromXML(xs.toXML(m));
		
		for(MashupCommand mc : m.getList()) {
			mc.exec();
		}
	}
}
